import { EApproveStatus } from '@/components/statusShow/util'

// 审批状态
export const approveOptions = [
  {
    label: '全部',
    value: -1,
  },
  {
    label: '待审批',
    value: EApproveStatus['待审批'],
  },
  {
    label: '通过',
    value: EApproveStatus['通过'],
  },
  {
    label: '不通过',
    value: EApproveStatus['不通过'],
  },
  {
    label: '待提交',
    value: EApproveStatus['待提交'],
  },
  {
    label: '流程终止',
    value: EApproveStatus['流程终止'],
  },
]

// 审批流
export interface IApproveRecord {
  id?: number
  matterId?: number
  processNode?: number
  nodeName?: string
  processUserId?: number
  processUserName?: string
  processTime?: string
  processResult?: number
  processOpinion?: string
  isLastNode?: boolean
  type?: number
}

export type TApproveRecords = IApproveRecord[]
